﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Login.aspx.cs" Inherits="ElectronicJournal.Account.Login" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        ВХОД
    </h2>
    <p>
        Пожалуйста введите имя пользователя и пароль. 
        <asp:HyperLink ID="RegisterHyperLink" runat="server" EnableViewState="false"> Зарегистрируйтесь</asp:HyperLink>, если у Вас нет аккаунта.
    </p>
    <asp:Login ID="LoginUser" runat="server" EnableViewState="false" RenderOuterTable="true">
        <LayoutTemplate>
            <span class="failureNotification">
                <asp:Literal ID="FailureText" runat="server"></asp:Literal>
            </span>
            <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification" 
                 ValidationGroup="LoginUserValidationGroup"/>
            <div> 
                 <table>
                        <tr align="justify">
                            <td align="justify">
                                <asp:Label ID="UserNameLabel" Font-Size="Large" runat="server" AssociatedControlID="UserName">Имя пользователя:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="UserName" runat="server" CssClass="textEntry"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" 
                                     CssClass="failureNotification" ErrorMessage="User Name is required." ToolTip="User Name is required." 
                                     ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr align="left">
                            <td align="justify">
                                <asp:Label Font-Size="Large" ID="PasswordLabel" runat="server" AssociatedControlID="Password">Пароль:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" 
                                     CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required." 
                                     ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <br />
                        <tr align="justify">
                                <td align="justify">
                                    <asp:CheckBox ID="RememberMe" runat="server"/>
                                    <asp:Label Font-Size="Large" ID="RememberMeLabel" runat="server" 
                                    AssociatedControlID="RememberMe" 
                                    CssClass="inline">Запомнить меня</asp:Label>
                                    <br />
                                </td>
                         </tr>
                         <tr>
                                <td>   
                                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Войти" 
                                        ValidationGroup="LoginUserValidationGroup" onclick="LoginButton_Click" Width="200" Height="30" Font-Size = "12"/>
                                </td>
                         </tr>
                        
                </table>
            </div>
        </LayoutTemplate>
    </asp:Login>
</asp:Content>
